package com.headwind.logistics.operation.controller;

import com.headwind.logistics.common.util.LayuiUtil;
import com.headwind.logistics.log.annotate.Log;
import com.headwind.logistics.operation.dto.DepotWaybillTransportUserDto;
import com.headwind.logistics.operation.service.inter.ManagementBizInter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 周鑫
 * @Date 2020/7/27 17:27
 * @Version 1.0
 * @DESCRIPTION 控制器
 */
@Controller
public class ManagementController {

    @Resource
    ManagementBizInter managementBizInter;


    @RequestMapping("/admin/managents/select.action")
    @ResponseBody
    @Log("查询和分页功能")
    public LayuiUtil queryManagementController(Integer page,Integer limit){

       List<DepotWaybillTransportUserDto> depotWaybillTransportUserDto= managementBizInter.queryMangentBizInter(page,limit);

        return LayuiUtil.data(managementBizInter.queryMangentBizInter(null,null).size(),depotWaybillTransportUserDto);


    }
}
